package com.mei.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mei.demo.dao.DictionaryDao;
import com.mei.demo.domain.Dictionary;
import com.mei.demo.service.DictionaryService;

/**
 * 数据字典
 * 
 * 2018年7月11日 下午8:57:58 mei.xiaoliang@qq.com
 */
@Service
public class DictionaryServiceImpl implements DictionaryService {

    @Autowired
    private DictionaryDao dictionaryMapper;

    /** 
     * @see com.mei.demo.service.DictionaryGroupService#searchPage()
     */
    @Override
    public List<Dictionary> listAll() {
        return null;
    }

    /** 
     * @see com.mei.demo.service.DictionaryGroupService#browse(int)
     */
    @Override
    public Dictionary browse(int id) {
        return null;
    }

    /** 
     * @see com.mei.demo.service.DictionaryGroupService#add(com.mei.demo.domain.Dictionary)
     */
    @Override
    public int add(Dictionary dict) {
        return dictionaryMapper.insert(dict);
    }

    /** 
     * @see com.mei.demo.service.DictionaryGroupService#update(com.mei.demo.domain.Dictionary)
     */
    @Override
    public int update(Dictionary dict) {
        return 0;
    }

    /** 
     * @see com.mei.demo.service.DictionaryGroupService#delete(com.mei.demo.domain.Dictionary)
     */
    @Override
    public int delete(Dictionary dict) {
        return 0;
    }

}
